import http from '@/service/http'
import type * as T from '@/types/api/index'
const loginApi: T.ILoginApi = {
  login(data) {
    return http.post('/user/login', data)
  },
  doInfo() {
    return http.get('/user/userinfo')
  },
  doUpdInfo(data: any) {
    return http.put('/user/edit', data)
  },
  doUpdPass(data: any) {
    return http.post('/admin/user/password', data)
  },
  sendCode(data: any) {
    return http.post('/User/sendcode', data)
  },
  updemail(data: any) {
    return http.post('/User/updemail', data)
  }
}

export default loginApi
